<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='css/style.css') }}">
    {% block head %}{% endblock %}
</head>
<body>
    <header class="header">
        <div class="container">
            <nav class="navbar">
                <div class="logo">问答社区</div>
                <ul class="nav-links">
                    <li><a href="/">首页</a></li>
                    <li><a href="#">发布问答</a></li>
                    <li>
                        <div class="search-container">
                            <input type="text" placeholder="搜索问题..." class="search-input">
                            <button class="search-btn">搜索</button>
                        </div>
                    </li>
                </ul>
                <div class="auth-buttons">
                    <a href="/auth/login" class="btn btn-login">登录</a>
                    <a href="/auth/register" class="btn btn-register active">注册</a>
                </div>
            </nav>
        </div>
    </header>
    {% block body %}{% endblock %}
    <footer class="footer">
        <div class="container">
            <p>&copy; 2023 问答社区. 保留所有权利.</p>
        </div>
    </footer>
    <script src="{{ url_for('static', filename='/js/script.js') }}"></script>
</body>
</html>